'use strict';
// Copyright 2014 Blueant Inc. All Rights Reserved.

/**
 * @fileoverview 许愿树
 * @author sundbcn@gmail.com (sun debing)
 */

var wishtreeReceive = require('./wishtree/receive');
var wishtreeList = require('./wishtree/list');

module.exports = function (app) {
    return new Handler(app);
};

var Handler = function (app) {
    this.app = app;
};

/**
 * 使用
 */
Handler.prototype.receive = function (msg, session, next) {
    wishtreeReceive(msg, session, next);
};

/**
 * 资源商城列表
 */
Handler.prototype.list = function (msg, session, next) {
    wishtreeList(msg, session, next);
};
